package com.example.demo.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.demo.mapper.PlatformUserMapper;
import com.example.demo.service.PlatformUserService;
import com.woniuxy.movice.entity.PlatformUser;

@Service
@Transactional
public class PlatformUserServiceImpl implements PlatformUserService{

	@Resource
	private PlatformUserMapper platformUserMapper;
	
	@Override
	public String login(String account, String pass) {
		PlatformUser user = platformUserMapper.login(account);
		if(user !=null && user.getPass().equals(pass)) {
			return "成功";
		}else {
			return "失败";
		}
	}

}
